/*弹出页面*/
//= singlepage弹窗页面
.single-page {
  .side {
    // border-right: 1px solid #d4d4d4;
  }

  #main {
    padding: 0;
    // margin-top: -10px;
  }

  .msgbox {
    right: 20px;
    left: auto;
  }

  .content-foot {
    height: auto;
    overflow: visible;
  }

  .tableform {
    margin: 10px 0;
  }

  .tableform h5 {
    color: #305c89;
  }

  .tableform th {
    font-size: 12px;
    font-weight: normal;
  }
}

.spage-sidebar-wrap {
  display: none;
}

//= singlepage弹窗页面主内容区
.single-page-col2 #main {
  overflow: inherit;
  overflow-y: scroll;
}

//= singlepage主内容区
.single-page-col2 .spage-main-box {
  margin: 10px 0 20px;
}

.division {
  overflow: hidden;
  // margin: 5px;
  // padding: 5px 7px;
  zoom: 1;
  background: $gf;
  border: 1px solid #dbdbdb;
  border-radius: 5px;
}

.division .tableform {
  padding: 10px 15px;
  margin: 5px 0;
  background: $gf;
}

//= singlepage左部导航
.spage-side-nav {
  margin: 15px 0 5px;
  color: #3f4d69;

  ul {
    margin: 0;
  }

  li {
    height: 23px;
    padding: 0;
    overflow: hidden;
    line-height: 23px;
    list-style: none;
  }

  li span {
    display: block;
    padding: 0 0 0 20px;
    cursor: pointer;
  }

  .cur {
    font-weight: bold;
    // @include background(url(images/#{$side-current-bg}) repeat-x 0 -1200px);

    color: $side-current-text-color;
  }
}

//= singlepage商品标签组
ul.tag-editor-group {
  padding: 6px 10px;
}

//= singlepage主内容区
.spage-main-box {
  padding: 0;
  margin: 0;
  zoom: 1;

  .tag-editor-group li {
    list-style: none;
  }

  h3 {
    height: 23px;
    margin: 0 6px;
    font-size: 14px;
    font-weight: bold;
    line-height: 23px;
    color: $g0;
  }

  h4 {
    padding: 5px 2px;
    font-size: 12px;
    border-top: none;
  }
}

//= 重新生成图片
.gener-bj {
  width: 0;
  height: 15px;
  overflow: hidden;
  // background: url(images/#{$main-repeat-bg}) repeat-x 0 -1131px;
}

/*图片编辑器*/
//= 商品图片编辑器
.gpic-box {
  float: left;
  margin: 2px;
  cursor: pointer;
  background: $gf;

  .gpic {
    width: 90px;
    height: 90px;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
    border: 1px $gc solid;
  }

  .gpic i {
    display: none;
    width: 50px;
    padding: 3px;
    margin: -90px -40px 0 0;
    font-size: 11px;
    font-style: normal;
    color: $gf;
    background: #ff3300;
    filter: alpha(opacity = 70);
    opacity: 0.7;
  }

  img {
    vertical-align: middle;
    border: 1px $gf solid;
  }

  .current {
    border: 1px solid #ff3300;
  }

  .current i {
    display: block;
  }
}

//= 商品图片编辑器删除
.gpic-box-delete {
  text-align: center;
  background: #f2f2f2;
  border: 1px solid $gc;
  border-top: none;
}

//= 商品图片编辑器按钮区
.gpic-btn-bar {
  width: 90px;
  height: 15px;
  font-size: 8px;
  line-height: 14px;
  color: #c8c8c8;
  text-align: center;
  background: #f2f2f2;
  border: 1px solid $gc;
  border-top: none;

  span {
    @include inline-block;

    width: 10px;
    height: 10px;
    padding: 0 6px;
    margin: 2px 0 0;
    overflow: hidden;
    font-size: 0;
    background: url(images/gimg.png) no-repeat;
    border: 0 none;
  }

  i {
    visibility: hidden;
  }
}

//= 商品图片编辑器预览区
span.gpic-btn-view {
  background-position: 0 0;
}

span.gpic-btn-view:hover {
  background-position: 0 -20px;
}

//= 商品图片编辑器删除按钮
span.gpic-btn-delete {
  background-position: 0 -40px;
}

span.gpic-btn-delete:hover {
  background-position: 0 -60px;
}

//= 商品图片编辑器所有上传图片
#all-pics {
  width: 290px;
  margin: 0 auto;
  overflow: hidden;
}

#x-main-pic {
  width: 285px;
  height: 220px;
  margin: 5px auto;
  overflow: hidden;
  background: $gf;
  border: 1px solid #e9e9e9;
  border-right-color: $gc;
  border-bottom-color: $gc;
}

#x-main-pic .imgbox {
  width: 220px;
  height: 200px;
  background-color: $gf;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

//= 商品图片大图预览
.x-view-img {
  line-height: 15px;
  cursor: pointer;

  // @include icon-bg(view-img);

  border: 0 none !important;
}

.x-view-img:hover {
  // @include icon-bg(view-img, $offsetY: -24px, $pos: true);
}

/* 规格*/
//= 商品规格图
.goods-spec-pic {
  padding: 1px;
  vertical-align: middle;
  border: 1px solid #3366cc;
}

//= 商品规格容器
.goods-spec-box {
  overflow: hidden;
  background: $gf;

  li {
    float: left;
    margin: 3px;
    cursor: pointer;
    border: 2px $gf solid;
  }

  span,
  img {
    display: block;
    padding: 1px;
    color: $g3;
    background: $gf;
    border: 1px #3366cc solid;
  }

  span {
    padding: 1px 4px 1px 4px;
    white-space: nowrap;
  }

  .spec-add,
  .spec-add label {
    padding: 0;
    margin: 0;
    line-height: normal;
    text-align: center;
    cursor: pointer;
    border: none;
  }
}

.goods-spec-span {
  padding: 1px 4px;
  border: 1px solid #336699;
}

//= 商品规格
#goods-spec {
  .goods-spec-box {
    padding: 4px;
    margin: 0;
    border: 1px #3366cc solid;

    li {
      cursor: pointer;
    }

    .noclick {
      color: $gc;
      cursor: not-allowed;
    }

    .noclick span,
    .noclick img {
      color: $gc;

      @include opacity(0.5);
    }
  }

  .select-spec-unselect,
  .select-spec-value {
    display: block;
    background: $gf;
    border: 2px $gf solid;
  }

  .select-spec-unselect span,
  .select-spec-unselect img {
    display: block;
    padding: 1px;
    color: $g3;
    cursor: pointer;
    background: $gf;
    border: 1px #3366cc dotted;
  }

  .goods-spec-select span,
  .goods-spec-select img {
    border-style: solid;
  }

  .goods-spec-selected span,
  .goods-spec-selected img {
    background: #ffffcc;
    border-style: solid;
  }
}

//= 赠品规格项
#goods-spec-cell input {
  width: 50px;
}

/* 添加订单*/
//= 添加订单
.create-order {
  .section {
    padding: 10px;
    overflow: hidden;
    zoom: 1;
  }

  .tableform h5,
  .form-title {
    float: left;
    font-size: 14px;
    color: $g0;
  }

  .form-body {
    margin-left: 140px;
  }
}

/* 优惠券*/
//= 优惠券
#pt_conditions {
  li {
    padding: 3px 4px;
    margin: 0;
    background: $gf;
    border-bottom: 1px solid #e8e8e8;
  }

  ul {
    margin: 5px 0;
    border-color: #b5c5cf #c3d5df #c3d5df;
    border-style: solid;
    border-width: 2px 1px 1px;
  }
}

/* 开启规格 */
//= 开启商品规格页
// .specification {
//   .tt {
//     @include height(25px);

//     padding-bottom: 10px;
//     color: $g6;

//     strong {
//       margin-right: 10px;
//       color: #3367ac;
//     }
//   }

//   .type {
//     position: absolute;
//     left: 0;
//     width: 153px;
//     border: 1px solid #d5dfe3;

//     li a {
//       display: block;
//       height: 23px;
//       line-height: 23px;
//       color: $g0;
//       text-decoration: none;
//       text-indent: 1em;
//     }

//     li a b {
//       font-weight: normal;
//       color: #ff0000;
//     }

//     li a.c {
//       color: $gf;
//       background: #6e8ecd;
//     }

//     p {
//       @include height(30px);

//       text-align: center;
//       background: $ge;
//     }
//   }

//   .list {
//     margin-left: 165px;

//     .item {
//       padding-bottom: 10px;
//       margin: 20px 10px 0;
//       border-top: 1px solid #d5dfe3;

//       em {
//         display: block;
//       }

//       table {
//         margin-top: 10px;
//         background: #f5f8fa;
//       }

//       th {
//         height: 25px;
//         text-align: center;
//         background: #dee4ed;
//         border-right: 1px solid $gf;

//         em {
//           display: inline-block;
//           width: 68px;

//           padding-left: 3px;
//           margin: 0 3px;
//           vertical-align: middle;

//           @include height(21px);

//           // @include sliding($button-bg);
//         }

//         em a {
//           display: block;
//           height: 21px;

//           // @include sliding($button-bg, $offsetX: 100%);
//         }

//         em a:hover {
//           text-decoration: none;
//         }

//         &.last {
//           border-right: none;
//         }
//       }

//       td {
//         padding: 10px 0;
//         text-align: center;

//         input {
//           width: 70px;
//         }

//         span {
//           display: inline-block;
//           width: 30px;
//           height: 30px;
//           margin: 0 3px;
//           overflow: hidden;
//           vertical-align: middle;
//           background: $gf;
//           border: 1px solid $gd;
//         }

//         span img {
//           width: 28px;
//           height: 28px;
//           padding: 1px;
//           vertical-align: top;
//         }

//         b {
//           display: inline-block;
//           width: 12px;
//           height: 30px;
//           margin-left: -3px;
//           overflow: hidden;
//           vertical-align: middle;
//           cursor: pointer;
//           background: $ge url($arrow-down) no-repeat center center;
//           border: 1px solid $g9;
//           border-left: none;
//         }

//         i {
//           display: inline-block;
//           width: 13px;
//           height: 12px;
//           margin: 0 3px;
//           overflow: hidden;
//           cursor: pointer;
//         }

//         i.top {
//           background: url(../../images/bundle/icon_asc.gif);
//         }

//         i.bottom {
//           background: url(../../images/bundle/icon_desc.gif);
//         }

//         i.delete {
//           height: 10px;
//           background: url(../../images/bundle/delete.gif);
//         }
//       }
//     }

//     .table-action {
//       text-align: center;
//     }
//   }

//   .gridlist tbody td .fill b {
//     display: block;
//     width: 12px;
//     height: 12px;
//     font: normal 15px/0.8 Arial;
//     color: green;
//     cursor: pointer;
//     border: 1px solid $g6;
//   }

//   .gridlist tbody td .fill {
//     text-align: center;
//   }
// }

//= 商品规格框不可点状态
.goods-spec-box .noclick {
  cursor: not-allowed;
  opacity: 0.5;
}

//= 商品规格详细
.goods-spec-detail {
  .goods-spec-selected {
    margin: 10px 0;
    background: #f5f8fa;
    border: 1px solid #dae3e6;

    dd, dt {
      float: left;
      margin: 5px;
    }

    dd {
      padding: 2px 5px;
      background: #f9f9f9;
      border: 1px solid #a9a9a9;
    }

    .goods-num {
      margin: 50px 0 5px 5px;
      font-weight: bold;
    }

    .goods-num span {
      background: #f9f9f9;
    }

    dd span {
      background: #f9f9f9;
    }
  }
}

/* 新商品规格 */
.specification {
  margin-right: 8px;

  .type-wrap {
    float: left;
    width: 153px;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #d5dfe3;
  }

  .typelist {
    li {
      line-height: 2;
      text-indent: 1em;
      cursor: pointer;

      &.act {
        color: $gf;
        background: #6e8ecd;
      }
    }

    li a {
      display: block;
      color: $g0;
      text-decoration: none;
    }

    li a b {
      font-weight: normal;
      color: #ff0000;
    }

    p {
      @include height(30px);

      text-align: center;
      background: $ge;
    }
  }

  .spec-wrap {
    margin-left: 165px;
    border: 1px solid #d5dfe3;

    label {
      cursor: pointer;
    }

    .selectAll {
      padding: 7px 5px 8px;
      background: #f5f8fa;
      border-bottom: 1px solid #d5dfe3;

      input {
        vertical-align: middle;
      }
    }
  }

  .speclist {
    padding: 0 10px;
    overflow: hidden;
  }

  .spec-item {
    float: left;
    margin: 10px 10px 10px 0;
    text-align: center;

    input {
      margin-right: 5px;
      vertical-align: middle;
    }

    .x-input {
      display: none;
    }
  }

  .spec-colorbox {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 3px;
    overflow: hidden;
    vertical-align: middle;
    border: 1px solid #ddeeff;

    img {
      width: 20px;
      height: 20px;
    }
  }

  .spec-img {
    padding-top: 10px;
    margin: 10px;
    border-top: 1px solid #d5dfe3;

    th {
      height: 25px;
      text-align: center;

      em {
        display: inline-block;
        width: 68px;

        padding-left: 3px;
        margin: 0 3px;
        vertical-align: middle;

        @include height(21px);

        // @include sliding($button-bg);
      }

      em a {
        display: block;
        height: 21px;

        // @include sliding($button-bg, $offsetX: 100%);
      }

      em a:hover {
        text-decoration: none;
      }

      &.last {
        border-right: none;
      }
    }

    td {
      padding: 5px 0;
      text-align: center;

      .x-input {
        width: 70px;
      }

      i {
        display: inline-block;
        width: 13px;
        height: 12px;
        margin: 0 3px;
        overflow: hidden;
        cursor: pointer;
      }

      i.top {
        background: url(../../images/bundle/icon_asc.gif);
      }

      i.bottom {
        background: url(../../images/bundle/icon_desc.gif);
      }

      i.delete {
        height: 10px;
        background: url(../../images/bundle/delete.gif);
      }
    }
  }

  .gridlist {
    .x-input {
      width: 70px;
    }

    .bn {
      width: 100px;
    }

    .spec-name {
      display: none;
    }

    .x-input {
      display: inline-block;
    }

    .memberprice {
      white-space: nowrap;
    }

    .disabled {
      color: $g9;
    }
  }

  .specImage {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin: 0 3px;
    overflow: hidden;
    vertical-align: middle;
    background: $gf;
    border: 1px solid $gc;

    img {
      width: 28px;
      height: 28px;
      padding: 1px;
      vertical-align: top;
    }
  }

  .chooseSpecImage {
    display: inline-block;
    width: 12px;
    height: 30px;
    margin-left: -3px;
    overflow: hidden;
    vertical-align: middle;
    cursor: pointer;
    background: $f0 url($arrow-down) no-repeat center center;
    border: 1px solid $gc;
    border-left: none;
  }

  .sel-imgs-area {
    img {
      width: 22px;
      height: 22px;
      margin: 0 1px;
      border: 1px solid $gd;
    }
  }

  .action-btns {
    margin-top: 1em;
    margin-left: 165px;
    text-align: center;
  }

  .error {
    position: absolute;
    height: 16px;
    margin-left: 1px;
    line-height: 16px;
  }
}
